<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%><%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles"%>
<tiles:insertDefinition name="layout">
	<tiles:putAttribute name="head">
		<script type="text/javascript">
			$(function() {
				$("form").Validform({
					ajaxPost : true,
					customReset : true,
					tiptype : ValidUtils.siblingTip,
					callback : function(data) {
						helper.showMsg(data, {
							okHandler : function() {
								art.dialog.data("success", true);
								art.dialog.close();
							}
						});
					}
				});
			});
		</script>
	</tiles:putAttribute>
	<tiles:putAttribute name="mainBody">
		<form class="form-horizontal" action="doCreateCourse" method="post">
			<fieldset>
				<legend>创建课程模版</legend>
				<div class="control-group">
					<div class="control-label">模版名称</div>
					<div class="controls">
						<input type="text" name="name" />
					</div>
				</div>
				<div class="control-group">
					<div class="control-label">课程形式</div>
					<div class="controls">
						<select class="input-small">
							<option>普通</option>
							<option>VIP</option>
						</select>
					</div>
				</div>
				<div class="control-group">
					<div class="control-label">计费方式</div>
					<div class="controls">
						<select class="input-small">
							<option>固定班</option>
							<option>计时</option>
							<option>计次</option>
						</select>
					</div>
				</div>
				<div class="control-group">
					<div class="control-label">时长/次数限制</div>
					<div class="controls">
						<div class="input-append">
							<input name="template" class="input-mini" type="text" value="12"> <span class="add-on">次</span>
						</div>
						<div class="input-append">
							<input name="template" class="input-mini" type="text" value="12"> <span class="add-on">天</span>
						</div>
					</div>
				</div>
				<div class="control-group">
					<div class="control-label">课程内容</div>
					<div class="controls">
						<div class="form-inline">
							<label class="checkbox">
								<input type="checkbox" />雅思
							</label>
							<label class="checkbox">
								<input type="checkbox" />少儿
							</label>
						</div>
					</div>
				</div>
				<div class="control-group">
					<div class="control-label">说明</div>
					<div class="controls">
						<input type="text" name="title" />
					</div>
				</div>
			</fieldset>
			<div class="control-group">
				<div class="controls">
					<button type="submit" class="btn btn-primary">提交</button>
				</div>
			</div>
		</form>
	</tiles:putAttribute>
</tiles:insertDefinition>